import collections


class Solution(object):
    def uniqueOccurrences(self, arr):
        c = collections.Counter(arr)
        values = set(c.values())
        return len(values) == len(c)
